from rest_framework.serializers import ModelSerializer
from .models import *


class JournalismSer(ModelSerializer):
    class Meta:
        model = Journalism
        fields = '__all__'


class BooksSer(ModelSerializer):
    class Meta:
        model = Books
        fields = '__all__'

class Show_ClassifySer(ModelSerializer):
    book = BooksSer(many=True, read_only=True)
    class Meta:
        model = Classify
        fields = '__all__'

class ClassifySer(ModelSerializer):
    class Meta:
        model = Classify
        fields = '__all__'



